{template "content","header"}
<div class="main">
<style>
.demo-info{
font-size:16px;
border:1px solid #E5E5E5;
}
.demo-info a ,a.more{
font-size:16px;
color: #004499;
}
.newsdown{
padding-top:5px;
padding-left: 25px;
}
.icon-tip{
padding-top:12px;
}
</style>
<script type="text/javascript">
 

 $(function () {
        
            

            // 下面代码都是处理IE浏览器的情况 
          
                //判断是否为IE浏览器，"ActiveXObject" in window判断是否为IE11
                //判断是否安装了adobe Reader
                // alert("您使用的是IE浏览器，请使用chrome浏览器或360浏览器急速模式进行浏览");
				
				$('#tt').addClass("demo-info");
				
				$('#tt').html("<div class='demo-tip icon-tip'></div>请点击下面的链接进行下载浏览！！！ <div class='bk15 hr'></div>");             
			  	{loop $newsfile $k $r}
					  var url="{php echo preg_replace( "/<a href='(.*)'(.*)<\/a>/iUs", '\\1',$r)}";
					  var name="{php echo strip_tags(preg_replace( "/<a href='(.*)'(.*)<\/a>/iUs", '\\0',$r))}";
					 
					 $("#tt").append("<div class='newsdown'><a target='_blank' href='"+url+"'>"+name+"</a></div>");
                {/loop}					  
      
          
        });
</script>
	<div  class="col-left" style="width:100%">
    	<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> &gt; </span>{catpos($catid)} 正文</div>
        <div id="Article">
        	<h1>{$title}<br />
<span>发布日期:{$inputtime}&nbsp;&nbsp;&nbsp;作者：{$username}&nbsp;&nbsp;&nbsp;
 点击：</span><span id="hits"></span></h1>
			{if $description}<div class="summary" >{$description}</div>
			{/if}
			<div class="content">
			{if $allow_visitor==1}
		
		
			<div id="tt" ></div>
			
<!-- <div id="tt" class="easyui-tabs" style="width:1170px;height:750px;">
	{loop $newsfile $r}
	<div title="{php echo strip_tags(preg_replace(" /<a href='(.*)' (.*)<\/a>/iUs",'\\0',$r))}" data-options="iconCls:'icon-standard-creditcards',closable:false" style="padding:0px;">
		<a class="media" href={php echo preg_replace( "/<a href='(.*)'(.*)<\/a>/iUs", '\\1',$r)}></a>
	
	</div>
	{/loop}
</div> -->
   




				<!--内容关联投票-->
				{if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}
                
			{else}
				<CENTER><a href="{APP_PATH}index.php?m=content&c=readpoint&allow_visitor={$allow_visitor}"><font color="red">阅读此信息需要您支付 <B><I>{$readpoint} {if $paytype}元{else}点{/if}</I></B>，点击这里支付</font></a></CENTER>
			{/if}
			</div>
{if $titles}
<fieldset>
	<legend class="f14">本文导航</legend><ul class="list blue row-2">
{loop $titles $r}
	<li>{$n}、<a href="{$r[url]}">{$r[title]}</a></li>
{/loop}
</ul>
</fieldset>
{/if}
			<div id="pages" class="text-c">{$pages}</div>
            <p style="margin-bottom:10px">
            <strong>相关热词搜索：</strong>{loop $keywords $keyword}<a href="{APP_PATH}index.php?m=content&c=tag&a=lists&tag={urlencode($keyword)}" class="blue">{$keyword}</a> 	{/loop}
            </p>
            <p class="f14">
                <strong>上一篇：</strong><a href="{$previous_page[url]}">{$previous_page[title]}</a><br />
                <strong>下一篇：</strong><a href="{$next_page[url]}">{$next_page[title]}</a>
            </p>
          {pc:content action="relation" relation="$relation" id="$id" catid="$catid" num="5" keywords="$rs[keywords]"}
              {if $data}
                <div class="related">
                    <h5 class="blue">延伸阅读：</h5>
                    <ul class="list blue lh24 f14">
                        {loop $data $r}
                            <li>·<a href="{$r[url]}" target="_blank">{$r[title]}</a><span>({date('Y-m-d',$r[inputtime])})</span></li>
                        {/loop}
                    </ul>
                </div>
              {/if}
          {/pc}
          <div class="bk15"></div>
            {if module_exists('mood')}<script type="text/javascript" src="{APP_PATH}index.php?m=mood&c=index&a=init&id={id_encode($catid,$id,$siteid)}"></script>{/if}
      </div>
      <div class="Article-Tool">
         
      
	  <span id='favorite'>
		<a href="javascript:;" onclick="add_favorite('{addslashes($title)}');" class="t6">收藏到您的会员中心</a>
	  </span>

	  </div>
      <div class="bk10"></div>
      {if $allow_comment && module_exists('comment')}
      <iframe src="{APP_PATH}index.php?m=comment&c=index&a=init&commentid={id_encode("content_$catid",$id,$siteid)}&iframe=1" width="100%" height="100%" id="comment_iframe" frameborder="0" scrolling="no"></iframe>
      <div class="box">
        		<h5>评论排行</h5>
				 {pc:comment action="bang" siteid="$siteid" cache="3600"}
            	<ul class="content list blue f14 row-2">
				{loop $data $r}
                	<li>·<a href="{$r[url]}" target="_blank">{str_cut($r[title], 40)}</a><span>({$r[total]})</span></li>
					{/loop}
                </ul>
				{/pc}
        </div>
        {/if}
  </div>

</div>
<script type="text/javascript">
<!--
	function show_ajax(obj) {
		var keywords = $(obj).text();
		var offset = $(obj).offset();
		var jsonitem = '';
		$.getJSON("{APP_PATH}index.php?m=content&c=index&a=json_list&type=keyword&modelid={$modelid}&id={$id}&keywords="+encodeURIComponent(keywords),
				function(data){
				var j = 1;
				var string = "<div class='point key-float'><div style='position:relative'><div class='arro'></div>";
				string += "<a href='JavaScript:;' onclick='$(this).parent().parent().remove();' hidefocus='true' class='close'><span>关闭</span></a><div class='contents f12'>";
				if(data!=0) {
				  $.each(data, function(i,item){
					j = i+1;
					jsonitem += "<a href='"+item.url+"' target='_blank'>"+j+"、"+item.title+"</a><BR>";
					
				  });
					string += jsonitem;
				} else {
					string += '没有找到相关的信息！';
				}
					string += "</div><span class='o1'></span><span class='o2'></span><span class='o3'></span><span class='o4'></span></div></div>";		
					$(obj).after(string);
					$('.key-float').mouseover(
						function (){
							$(this).siblings().css({"z-index":0})
							$(this).css({"z-index":1001});
						}
					)
					$(obj).next().css({ "left": +offset.left-100, "top": +offset.top+$(obj).height()+12});
				});
	}

	function add_favorite(title) {
		$.getJSON('{APP_PATH}api.php?op=add_favorite&title='+encodeURIComponent(title)+'&url='+encodeURIComponent(location.href)+'&'+Math.random()+'&callback=?', function(data){
			if(data.status==1)	{
				$("#favorite").html('收藏成功');
			} else {
				alert('请登录');
			}
		});
	}

$(function(){
  $('#Article .content img').LoadImage(true, 660, 660,'{IMG_PATH}s_nopic.gif');  



})
　　
function Check_AdobeReader() {
    var displayString;
    var acrobat = new Object();
    acrobat.installed = false;
    acrobat.version = "0.0";

    if (navigator.plugins && navigator.plugins.length) {
        for (x = 0; x < navigator.plugins.length; x++) {
            if (navigator.plugins[x].description.indexOf("Adobe Acrobat") != -1) {
                acrobat.version = parseFloat(navigator.plugins[x].description.split("Version ")[1]);
                if (acrobat.version.toString().length == 1) acrobat.version += ".0";
                acrobat.installed = true;
                break;
            } else if (navigator.plugins[x].description.indexOf("Adobe PDF Plug-In") != -1) {
                acrobat.installed = true;
                acrobat.version = "8+";
            }
        }
    } else if (window.ActiveXObject) {
        for (x = 2; x < 10; x++) {
            try {
                oAcro = eval_r("new ActiveXObject('PDF.PdfCtrl." + x + "');");
                if (oAcro) {
                    acrobat.installed = true;
                    acrobat.version = x + ".0";
                }
            }
            catch (e) {
            }
        }

        try {
            oAcro4 = new ActiveXObject("PDF.PdfCtrl.1");
            if (oAcro4) {
                acrobat.installed = true;
                acrobat.version = '4.0';
            }
        }
        catch (e) {
        }

        try {
            oAcro7 = new ActiveXObject('AcroPDF.PDF.1');
            if (oAcro7) {
                acrobat.installed = true;
                acrobat.version = '7.0';
            }
        }
        catch (e) {
        }
    }

    return acrobat;
}

//-->
</script>

<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
{template "content","footer"}